{template nheader.html}

<div class="page-bar">

    <div class="page-toolbar">
    <div class="btn-group pull-right">
      <a href="{dr_url('order/add')}">{fc_lang('录入订单')}</a>
        <i class="fa fa-circle"></i>
    </div>
    </div>
</div>

<div class="portlet mylistbody">
    <div class="portlet-body">
        <div class="table-scrollable">
            <table class="mytable table table-striped table-bordered table-hover table-checkable dataTable">
                <thead>
                <tr>
                    <th align="center" width="1%">{fc_lang('序号')}</th>
                    <th align="center" width="8%">{fc_lang('订单号')}</th>
                    <th align="center" width="5%">{fc_lang('订单时间')}</th>
                    <th align="center"  width="2%">{fc_lang('学生姓名')}</th>
                    <th align="center"  width="2%">{fc_lang('申请人姓名')}</th>
                    <th align="center"  width="5%">{fc_lang('手机号码')}</th>
                    <th align="center"  width="2%">{fc_lang('申请金额')}</th>
                    <th align="center"  width="2%">{fc_lang('申请期数')}</th>
                    <th align="center"  width="14%">{fc_lang('家庭地址')}</th>
                    <th align="center"  width="15%">操作</th>
                </tr>
                </thead>
                <tbody>
                {loop $list $t}
                <tr>
                    <td>{$t.id}</td>
                    <td>{$t.projectNo}</td>
                    <td>{$t.orderDate}</td>
                    <td>{$t.studentName}</td>
                    <td>{$t.applicantName}</td>
                    <td>{$t.mobile}</td>
                    <td>{$t.applyAmt}</td>
                    <td>{$t.applyTerm}</td>
                    <td>{$t.homeAddress}</td>
                    <td>
                        <a href="{dr_url('haimi/detail',array('projectNo'=>$t.projectNo))}">查看订单</a>
                        {if $t.status == 0}<a href="javascript:;" onclick="return dr_confirm_url('您确定这样子操作吗?','admin.php?c=order&m=close&oid={$t.id}');">关闭订单</a> {/if}
                        {if $t.status == 4}<a href="javascript:;" onclick="return dr_confirm_url('您确定这样子操作吗?','admin.php?c=order&m=del&oid={$t.id}&page={$page}');">删除订单</a>{/if}
                        {if $t.status == 0}<a href="{dr_url('order/pay',array('oid'=>$t.id))}">去支付</a>{/if}
                        <a href="{dr_url('order/payback',array('oid'=>$t.id))}">去退款</a>
                    </td>
                </tr>
                {/loop}
                </tbody>
            </table>

        </div>
    </div>

</div>

<div id="pages"><a>{fc_lang('共%s条', $total)}</a>{$pages}</div>
<script>


</script>
{template nfooter.html}